/* $RCSFile: FreeTextBox.cs $
 * Apache license v2 2011 by Christian Surieux
 * $Source: ?/ADNCRM.Core/UI/WebControls/FreeTextBox.cs $
 * $log$
 * Revision 6 2010/08/06 19:56:30  christian.surieux
 *   Added Log to All cs files
 */

using System;
using System.Reflection;
using System.Text.RegularExpressions;


using System.Web;
using AddonNice.UI;
using AddonNice.Configuration;

namespace AddonNice.UI.WebControls
{
	/// <summary>
	///  FreeTextBox is a wrapper for FreeTextBoxControls.FreeTextBox
	/// </summary>
	public class FreeTextBox : FreeTextBoxControls.FreeTextBox, AddonNice.UI.WebControls.IHtmlEditor
	{
		private string _imageFolder = string.Empty;
		/// <summary>
		/// Control Image Folder
		/// </summary>
		public string ImageFolder
		{
			get 
			{
				if (_imageFolder == string.Empty) 
				{
					PortalSettings pS = (PortalSettings) HttpContext.Current.Items[StStr.strPortalSettings];
					if(pS.CustomSettings != null) 
					{
						_imageFolder = pS.CustomSettings[StStr.SiteSettingsDefaultImageFolder].Value;
					}
				}
				return "/images/" + _imageFolder;
			}
			set
			{
				_imageFolder = value;
			}
		}

        public string TextContent
		{
			get {   return base.Text; }
			set {   base.Text  =   value;}
		}

        public string TextNoContent
		{
			get {   return base.Text; }
			set {   base.Text  =   value;}
		}

        public bool SupportsTranslator
		{
			get 
			{
				return false;
			}
			set
			{
			}
		}
    }
}